﻿//-----------------------------------------------------------------------------------
// <copyright file="AppDomainTestExtensionExecution.cs" company="P.O.S Informatique">
//     Copyright (c) P.O.S Informatique. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------------------
namespace PosInformatique.DevelopmentTools.VisualStudio.TestExtensions
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using Microsoft.VisualStudio.TestTools.UnitTesting;

    /// <summary>
    /// Implementation of MSTest <see cref="TestExtensionExecution"/> which execute the unit test
    /// with a <see cref="AppDomainTestMethodInvoker"/>.
    /// </summary>
    internal sealed class AppDomainTestExtensionExecution : TestExtensionExecution
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="AppDomainTestExtensionExecution"/> class.
        /// </summary>
        public AppDomainTestExtensionExecution()
        {
        }

        /// <inheritdoc />
        public override ITestMethodInvoker CreateTestMethodInvoker(TestMethodInvokerContext context)
        {
            return new AppDomainTestMethodInvoker(context);
        }

        /// <inheritdoc />
        public override void Dispose()
        {
        }

        /// <inheritdoc />
        public override void Initialize(TestExecution execution)
        {
        }
    }
}
